import React, { useState } from 'react'
import { ResultPage,Card } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'

const Home = () => {
    const nav = useNavigate()
    const city=localStorage.getItem("city") || []
    return (
        <div>
            首页
            <ResultPage
                status=''
                title=''
                description=''
            >
                <ResultPage.Card style={{ padding: 8 }}>
                    <Card title='城市选择' onClick={()=>nav("/city")}>
                        {city}
                    </Card>
                </ResultPage.Card>
            </ResultPage>
        </div>
    )
}

export default Home
